<template>
  <h1>El-下拉选框组件</h1>
  <el-select placeholder="请选择你喜欢的城市" v-model="city" style="width: 30%">
    <el-option label="北京" value="bj"></el-option>
    <el-option label="承德" value="cd"></el-option>
    <el-option label="唐山" value="ts"></el-option>
    <el-option label="三亚" value="sy"></el-option>
    <el-option label="苏州" value="sz"></el-option>
  </el-select>
  <h4>您选择的城市是:{{city}}</h4>
</template>

<script setup>
import {ref} from "vue";

const city = ref('cd');
</script>


<style scoped>

</style>